<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>

<body>
<?php
$xml = simplexml_load_file("../hostconfig.xml");
$host='default';
$user='account';
$pass='password';
foreach($xml->children() as $child)
{
	if($child->getName() == 'host'){$host=$child;}
	if($child->getName() =='user'){$user=$child;}
 	if($child->getName() =='pass'){$pass=$child;}
}
?>
<form method="post" action="configSuccess.php">
	[Host]<input name="txt_host" type="text" value="<?php echo $host ?>"></input>
	[User]<input name="txt_user" type="text" value="<?php echo $user ?>"/>
	[Pass]<input name="txt_pass" type="password" value="<?php echo $pass ?>"/>
	[Repass]<input name="txt_repass" type="password" value="<?php echo $pass ?>"/>
	<input name="btn_config" type="submit" value="Config" />
	<input name="btn_cancel" type="button" value="Cancel" />
</form>

</body>

</html>
